package com.xplay.xpocker.room.mahjong.event;

import com.xplay.xpocker.room.message.MessageContent;
import org.springframework.context.ApplicationEvent;

public class UserEvent extends ApplicationEvent {

    private final MessageContent<Object> data;

    private final int sleepTime = 1000;

    public UserEvent(Object source, MessageContent<Object> data) {
        super(source);
        this.data = data;
    }

    public MessageContent<Object> getData() {
        return data;
    }

    public int getSleepTime() {
        return sleepTime;
    }
}
